package com.siwei.mes.service.impl;

import com.siwei.mes.mapper.MaterialsMapper;
import com.siwei.mes.service.MaterialsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 物料表(Materials)表服务实现类
 *
 * @author linzi
 * @since 2023-11-27 22:46:48
 */
@Service
public class MaterialsServiceImpl implements MaterialsService {
    @Resource
    private MaterialsMapper materialsMapper;

    @Override
    public List<String> getMaterialsNameByType(Long materialType) {
        return materialsMapper.getMaterialsNameByType(materialType);
    }

    @Override
    public List<String> getMaterialsSpecs(String materialName, Long materialType) {
        return materialsMapper.getMaterialsSpecs(materialName, materialType);
    }
}
